/*
 * @filename GatewayCurrentUserService.java
 * @author barry todo 原项目没有 是否需要保留
 * @version 0.0.1
 * @date 2020年3月13日
 *//*

package com.bnzj.cloud.gateway.config;

import com.bnzj.cloud.business.core.service.SysUserService;
import com.bnzj.core.rest.CurrentUserService;
import com.bnzj.core.rest.UserInfo;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

*/
/**
 * @author barry
 * @date 2020-03-13
 *//*

@Component
public class GatewayCurrentUserService implements CurrentUserService {

    @Value("${bnzj.userid.header?:X-USER-NAME}")
    private String userHeaderStr;

    @Resource
    private SysUserService sysUserService;

    @Override
    public String getAccount() {
        return "admin";
    }

    @Override
    public UserInfo getUserInfo() {
        return sysUserService.findByAccount(getAccount());
    }
}
*/
